package com.cdy.a2j.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@Controller
@RequestMapping(value = "hello")//请求映射(接口的根路径)
public class HelloController {

    @RequestMapping(value = "/springboot", method = RequestMethod.GET)
    public String hello() {
        int a = 10;
        int b = 1;
        System.out.println(a/b);
        return "hello";
    }
}
